---
---
/*
 * Copyright (C) 2018 Samuel Wall
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

$app-bar-height: 64px;
$app-bar-below: 48px;
$nav-width: 260px;

body
{
    color: #2b2b2b;
    color: rgba(0,0,0,.82);
}

.hidden
{
    display: none;
}

h2
{
    margin-top: 24px;
}

.grow
{
    flex-grow: 1;
}

.app-bar
{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: $app-bar-height;
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #eee;
    background: #FFF;
    z-index: 1;

    .title
    {
        display: flex;
        line-height: $app-bar-height;
        padding-left: 16px;
        font-weight: 700;
        font-size: 26px;
        color: #6f6f6f;
        color: rgba(0,0,0,.58);
        text-decoration: none;

        img
        {
            margin-right: 16px;
        }
    }

    .button
    {
        line-height: $app-bar-height - 24px;
        padding: 0 16px;
        margin: 12px;
        border-radius: 2px;
        background: #43A047;
        color: #FFF;
        font-weight: 600;
        text-transform: uppercase;

        &:hover
        {
            text-decoration: none;
            background: #2E7D32;
        }
    }
}

main
{
    margin-top: $app-bar-height;
    display: flex;
    flex-direction: row;
}

nav
{
    position: fixed;
    width: $nav-width;
    top: $app-bar-height;
    padding-top: $app-bar-below;
    bottom: 0;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    background: #FFF;

    header
    {
        padding: 0 8px 16px 16px;
    }

    .links
    {
        margin-top: 24px;
        flex-grow: 1;

        ul
        {
            margin-left: 24px;
            list-style: none;

            li:last-child
            {
                border-bottom: 1px solid #eee;
            }
        }

        a
        {
            line-height: 48px;
            padding-left: 16px;
            font-size: 16px;
            display: block;

            &:hover
            {
                text-decoration: none;
                background: #eee;
            }
        }
    }

    footer
    {
        padding: 24px;
    }
}

section
{
    margin: 0 $app-bar-below $app-bar-below ($nav-width + $app-bar-below);
}

pre
{
    border: 1px solid #bbb;
    border-radius: 5px;
    padding: 4px;
}

p
{
    margin: 8px 0;
}

.highlighter-rouge
{
    margin: 8px 0 16px 0;
}

.edit-this-page
{
    position: absolute;
    top: ($app-bar-height + 16px);
    right: 16px;
}

.tabs-titles
{
    display: flex;
}

.tabs-title
{
    padding: 4px 8px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border: 1px solid #eee;
    border-bottom: 0;
    cursor: pointer;
}

.tabs-title.selected
{
    border-color: #bbb;
}

.tabs-content .highlighter-rouge
{
    margin: 0 0 16px 0;
}

.tabs-content .highlighter-rouge pre.highlight
{
    border-top-left-radius: 0;
}

.banner {
    font-weight: bold;
    font-size: 20px;
    padding: 20px;
    max-width: 768px;
    margin: 0 auto;
    text-align: center;

  }
